dxp-ux

(0 reviews)

Retrieve UsageConsumption (TMF-677) - PR

/usageConsumptionReport [GET]

Key considerations for PR Market

  1. This resource is only applicable for PR Market only

URL

https://[localhost]:[port]/dxp-ux/v1/{businessId}/usageConsumptionReport

URL PARAMS

nametypedescriptionrequired
businessIdstring2 letter ISO 3166 country code (TT, BB, JM, PA, PR etc.) identifying the business unit.Y
namevaluedescriptionrequired
client_idstringThe client_id identifying the channel.Y
client_secretstringPassword associated with the client_id.Y
X-Correlation-IDstringAn identifier for the current call chain that can be used to tie together log entries on multiple layers (e.g. client, server, mainframe). This identifier must be designed to be unique across all applications.
Note - Mule default behavior creates a sample x-correlation-id field if value is not passed from client, API will use this value in case value is not passed in API request
Y
channelIdstringExpected value APP.
this is applicable when BU=PR
cond.Y
targetSystemstringExpected value Matrixx.
this is applicable when BU=PR
cond. Y

QueryParameter

namevaluedescriptionrequired
product.publicIdentifierstringNeed to provide valid MSISDN or SubscriptionId valueY
product.publicIdentifierTypestringDefine the type of product.publicIdentifierY
[ 200 ] Prepaid

Note: Below response is for both Retrieve Usage & Get remaining balance for the account.

OK - list request processed successfully, response body contains an entity corresponding to the requested resource.

[
    {
        "description": "Usage Consumption Report for SubscriptionId S-1001",
        "effectiveDate": "2023-03-13T10:54:49",
        "@type": "UsageConsumptionReport",
        "characteristic": [
            {
                "value": "Monthly",
                "name": "BillingCycleId"
            },
            {
                "value": "11",
                "name": "BillingIntervalId"
            },
            {
                "value": "31",
                "name": "BillingCycleDuration"
            },
            {
                "value": "27",
                "name": "BillingCycleOffset"
            },
            {
                "value": "2023-03-01T00:00:00",
                "name": "BillingCycleStartTime"
            },
            {
                "value": "2023-04-01T00:00:00",
                "name": "BillingCycleEndTime"
            }
        ],
        "bucket": [
            {
                "id": "1",
                "name": "Prepaid Balance",
                "usageType": "United States dollar",
                "isShared": false,
                "@type": "BucketBalance",
                "characteristic": [
                    {
                        "value": "202.2",
                        "name": "AvailableAmount"
                    },
                    {
                        "value": "2023-02-10T18:16:41",
                        "name": "StartTime"
                    },
                    {
                        "value": "0",
                        "name": "CreditLimit"
                    },
                    {
                        "value": "false",
                        "name": "IsCreateExternalPaymentRequest"
                    },
                    {
                        "value": "false",
                        "name": "IsPeriodic"
                    },
                    {
                        "value": "true",
                        "name": "IsPrepaid"
                    },
                    {
                        "value": "false",
                        "name": "IsPrivate"
                    },
                    {
                        "value": "false",
                        "name": "IsVirtual"
                    },
                    {
                        "value": "0",
                        "name": "ReservedAmount"
                    },
                    {
                        "value": "165.41",
                        "name": "ThresholdLimit"
                    }
                ],
                "product": [
                    {
                        "publicIdentifier": "S-1001"
                    }
                ],
                "bucketCounter": [
                    {
                        "counterType": "Threshold_credit_limit",
                        "level": "Notify_Gross",
                        "value": {
                            "amount": 0,
                            "units": "none"
                        },
                        "valueName": "Limit"
                    },
                    {
                        "counterType": "Threshold_available_amount",
                        "level": "Notify_Gross,Notify_BalIncr,Notify_IncrEq",
                        "value": {
                            "amount": 20,
                            "units": "none"
                        },
                        "valueName": "20Absolute #514"
                    },
                    {
                        "counterType": "Threshold_available_amount",
                        "level": "Notify_Gross,Notify_BalIncr,Notify_IncrEq",
                        "value": {
                            "amount": 0,
                            "units": "none"
                        },
                        "valueName": "ZeroAbsolute #515"
                    }
                ]
            },
            {
                "id": "7",
                "name": "Included Minutes - Prepaid",
                "usageType": "Voice",
                "isShared": false,
                "@type": "BucketBalance",
                "characteristic": [
                    {
                        "value": "88888",
                        "name": "AvailableAmount"
                    },
                    {
                        "value": "2023-02-10T18:17:22",
                        "name": "BalanceStartTime"
                    },
                    {
                        "value": "2023-03-12T00:00:00",
                        "name": "StartTime"
                    },
                    {
                        "value": "2023-04-11T00:00:00",
                        "name": "EndTime"
                    },
                    {
                        "value": "0",
                        "name": "CreditLimit"
                    },
                    {
                        "value": "false",
                        "name": "IsBillingCyclePeriodic"
                    },
                    {
                        "value": "false",
                        "name": "IsCompositeMeter"
                    },
                    {
                        "value": "false",
                        "name": "IsCreateExternalPaymentRequest"
                    },
                    {
                        "value": "false",
                        "name": "IsOnDemand"
                    },
                    {
                        "value": "true",
                        "name": "IsPeriodic"
                    },
                    {
                        "value": "true",
                        "name": "IsPrepaid"
                    },
                    {
                        "value": "false",
                        "name": "IsPrivate"
                    },
                    {
                        "value": "true",
                        "name": "IsPurchasedItemCyclePeriodic"
                    },
                    {
                        "value": "false",
                        "name": "IsRenewable"
                    },
                    {
                        "value": "false",
                        "name": "IsVirtual"
                    },
                    {
                        "value": "0",
                        "name": "ReservedAmount"
                    },
                    {
                        "value": "88888",
                        "name": "ThresholdLimit"
                    }
                ],
                "product": [
                    {
                        "publicIdentifier": "S-1001"
                    }
                ],
                "bucketBalance": [
                    {
                        "remainingValueName": "88888 minutes",
                        "remainingValue": {
                            "amount": 88888,
                            "units": "minutes"
                        },
                        "validFor": {
                            "startDateTime": "2023-02-10T00:00:00",
                            "endDateTime": "2023-03-12T00:00:00"
                        },
                        "characteristic": [
                            {
                                "value": "88888",
                                "name": "ThresholdLimit"
                            },
                            {
                                "value": "0",
                                "name": "ReservedAmount"
                            },
                            {
                                "value": "false",
                                "name": "IsCurrentPeriod"
                            }
                        ]
                    },
                    {
                        "remainingValueName": "88888 minutes",
                        "remainingValue": {
                            "amount": 88888,
                            "units": "minutes"
                        },
                        "validFor": {
                            "startDateTime": "2023-03-12T00:00:00",
                            "endDateTime": "2023-04-11T00:00:00"
                        },
                        "characteristic": [
                            {
                                "value": "88888",
                                "name": "ThresholdLimit"
                            },
                            {
                                "value": "0",
                                "name": "ReservedAmount"
                            },
                            {
                                "value": "true",
                                "name": "IsCurrentPeriod"
                            }
                        ]
                    },
                    {
                        "remainingValueName": "0 minutes",
                        "remainingValue": {
                            "amount": 0,
                            "units": "minutes"
                        },
                        "validFor": {
                            "startDateTime": "2023-04-11T00:00:00",
                            "endDateTime": "2023-05-11T00:00:00"
                        },
                        "characteristic": [
                            {
                                "value": "0",
                                "name": "ThresholdLimit"
                            },
                            {
                                "value": "0",
                                "name": "ReservedAmount"
                            },
                            {
                                "value": "false",
                                "name": "IsCurrentPeriod"
                            }
                        ]
                    }
                ],
                "bucketCounter": [
                    {
                        "counterType": "Threshold_credit_limit",
                        "level": "Notify_Gross",
                        "value": {
                            "amount": 0,
                            "units": "minutes"
                        },
                        "valueName": "Bal"
                    },
                    {
                        "counterType": "Threshold_available_amount",
                        "level": "Notify_Gross",
                        "value": {
                            "amount": 100,
                            "units": "minutes"
                        },
                        "valueName": "recurring minutes threshold"
                    }
                ]
            },
            {
                "id": "8",
                "name": "Included SMS - Prepaid",
                "usageType": "Text",
                "isShared": false,
                "@type": "BucketBalance",
                "characteristic": [
                    {
                        "value": "999999",
                        "name": "AvailableAmount"
                    },
                    {
                        "value": "2023-02-10T18:17:22",
                        "name": "BalanceStartTime"
                    },
                    {
                        "value": "2023-03-12T00:00:00",
                        "name": "StartTime"
                    },
                    {
                        "value": "2023-04-11T00:00:00",
                        "name": "EndTime"
                    },
                    {
                        "value": "0",
                        "name": "CreditLimit"
                    },
                    {
                        "value": "false",
                        "name": "IsBillingCyclePeriodic"
                    },
                    {
                        "value": "false",
                        "name": "IsCompositeMeter"
                    },
                    {
                        "value": "false",
                        "name": "IsCreateExternalPaymentRequest"
                    },
                    {
                        "value": "false",
                        "name": "IsOnDemand"
                    },
                    {
                        "value": "true",
                        "name": "IsPeriodic"
                    },
                    {
                        "value": "true",
                        "name": "IsPrepaid"
                    },
                    {
                        "value": "false",
                        "name": "IsPrivate"
                    },
                    {
                        "value": "true",
                        "name": "IsPurchasedItemCyclePeriodic"
                    },
                    {
                        "value": "false",
                        "name": "IsRenewable"
                    },
                    {
                        "value": "false",
                        "name": "IsVirtual"
                    },
                    {
                        "value": "0",
                        "name": "ReservedAmount"
                    },
                    {
                        "value": "999999",
                        "name": "ThresholdLimit"
                    }
                ],
                "product": [
                    {
                        "publicIdentifier": "S-1001"
                    }
                ],
                "bucketBalance": [
                    {
                        "remainingValueName": "999999",
                        "remainingValue": {
                            "amount": 999999
                        },
                        "validFor": {
                            "startDateTime": "2023-02-10T00:00:00",
                            "endDateTime": "2023-03-12T00:00:00"
                        },
                        "characteristic": [
                            {
                                "value": "999999",
                                "name": "ThresholdLimit"
                            },
                            {
                                "value": "0",
                                "name": "ReservedAmount"
                            },
                            {
                                "value": "false",
                                "name": "IsCurrentPeriod"
                            }
                        ]
                    },
                    {
                        "remainingValueName": "999999",
                        "remainingValue": {
                            "amount": 999999
                        },
                        "validFor": {
                            "startDateTime": "2023-03-12T00:00:00",
                            "endDateTime": "2023-04-11T00:00:00"
                        },
                        "characteristic": [
                            {
                                "value": "999999",
                                "name": "ThresholdLimit"
                            },
                            {
                                "value": "0",
                                "name": "ReservedAmount"
                            },
                            {
                                "value": "true",
                                "name": "IsCurrentPeriod"
                            }
                        ]
                    },
                    {
                        "remainingValueName": "0",
                        "remainingValue": {
                            "amount": 0
                        },
                        "validFor": {
                            "startDateTime": "2023-04-11T00:00:00",
                            "endDateTime": "2023-05-11T00:00:00"
                        },
                        "characteristic": [
                            {
                                "value": "0",
                                "name": "ThresholdLimit"
                            },
                            {
                                "value": "0",
                                "name": "ReservedAmount"
                            },
                            {
                                "value": "false",
                                "name": "IsCurrentPeriod"
                            }
                        ]
                    }
                ],
                "bucketCounter": [
                    {
                        "counterType": "Threshold_credit_limit",
                        "level": "Notify_Gross",
                        "value": {
                            "amount": 0,
                            "units": "none"
                        },
                        "valueName": "Bal"
                    }
                ]
            },
            {
                "id": "9",
                "name": "Included Data - Prepaid",
                "usageType": "Data",
                "isShared": false,
                "@type": "BucketBalance",
                "characteristic": [
                    {
                        "value": "8192",
                        "name": "AvailableAmount"
                    },
                    {
                        "value": "2023-02-10T18:17:22",
                        "name": "BalanceStartTime"
                    },
                    {
                        "value": "2023-03-12T00:00:00",
                        "name": "StartTime"
                    },
                    {
                        "value": "2023-04-11T00:00:00",
                        "name": "EndTime"
                    },
                    {
                        "value": "0",
                        "name": "CreditLimit"
                    },
                    {
                        "value": "false",
                        "name": "IsBillingCyclePeriodic"
                    },
                    {
                        "value": "false",
                        "name": "IsCompositeMeter"
                    },
                    {
                        "value": "false",
                        "name": "IsCreateExternalPaymentRequest"
                    },
                    {
                        "value": "false",
                        "name": "IsOnDemand"
                    },
                    {
                        "value": "true",
                        "name": "IsPeriodic"
                    },
                    {
                        "value": "true",
                        "name": "IsPrepaid"
                    },
                    {
                        "value": "true",
                        "name": "IsPrivate"
                    },
                    {
                        "value": "true",
                        "name": "IsPurchasedItemCyclePeriodic"
                    },
                    {
                        "value": "false",
                        "name": "IsRenewable"
                    },
                    {
                        "value": "false",
                        "name": "IsVirtual"
                    },
                    {
                        "value": "0",
                        "name": "ReservedAmount"
                    },
                    {
                        "value": "4096",
                        "name": "RolloverInitAmountTotal"
                    },
                    {
                        "value": "4096",
                        "name": "ThresholdLimit"
                    }
                ],
                "product": [
                    {
                        "publicIdentifier": "S-1001"
                    }
                ],
                "bucketBalance": [
                    {
                        "remainingValueName": "4096 megabytes",
                        "remainingValue": {
                            "amount": 4096,
                            "units": "megabytes"
                        },
                        "validFor": {
                            "startDateTime": "2023-02-10T00:00:00",
                            "endDateTime": "2023-03-12T00:00:00"
                        },
                        "characteristic": [
                            {
                                "value": "4096",
                                "name": "ThresholdLimit"
                            },
                            {
                                "value": "0",
                                "name": "ReservedAmount"
                            },
                            {
                                "value": "false",
                                "name": "IsCurrentPeriod"
                            }
                        ]
                    },
                    {
                        "remainingValueName": "4096 megabytes",
                        "remainingValue": {
                            "amount": 4096,
                            "units": "megabytes"
                        },
                        "validFor": {
                            "startDateTime": "2023-03-12T00:00:00",
                            "endDateTime": "2023-04-11T00:00:00"
                        },
                        "characteristic": [
                            {
                                "value": "4096",
                                "name": "ThresholdLimit"
                            },
                            {
                                "value": "0",
                                "name": "ReservedAmount"
                            },
                            {
                                "value": "true",
                                "name": "IsCurrentPeriod"
                            }
                        ]
                    },
                    {
                        "remainingValueName": "0 megabytes",
                        "remainingValue": {
                            "amount": 0,
                            "units": "megabytes"
                        },
                        "validFor": {
                            "startDateTime": "2023-04-11T00:00:00",
                            "endDateTime": "2023-05-11T00:00:00"
                        },
                        "characteristic": [
                            {
                                "value": "0",
                                "name": "ThresholdLimit"
                            },
                            {
                                "value": "0",
                                "name": "ReservedAmount"
                            },
                            {
                                "value": "false",
                                "name": "IsCurrentPeriod"
                            }
                        ]
                    },
                    {
                        "remainingValueName": "0 megabytes",
                        "remainingValue": {
                            "amount": 0,
                            "units": "megabytes"
                        },
                        "validFor": {
                            "startDateTime": "2023-05-11T00:00:00",
                            "endDateTime": "2023-06-10T00:00:00"
                        },
                        "characteristic": [
                            {
                                "value": "0",
                                "name": "ThresholdLimit"
                            },
                            {
                                "value": "0",
                                "name": "ReservedAmount"
                            },
                            {
                                "value": "false",
                                "name": "IsCurrentPeriod"
                            }
                        ]
                    }
                ],
                "bucketCounter": [
                    {
                        "counterType": "Threshold_credit_limit",
                        "level": "Notify_Gross",
                        "value": {
                            "amount": 0,
                            "units": "megabytes"
                        },
                        "valueName": "Bal"
                    },
                    {
                        "counterType": "Threshold_available_amount",
                        "level": "Notify_Gross",
                        "value": {
                            "amount": 100,
                            "units": "megabytes"
                        },
                        "valueName": "recurring data threshold"
                    },
                    {
                        "counterType": "Threshold_consumed_amount",
                        "level": "Notify_Gross,Notify_BalIncr,Notify_IncrEq",
                        "value": {
                            "amount": 75,
                            "units": "megabytes"
                        },
                        "valueName": "75Percent #501"
                    },
                    {
                        "counterType": "Threshold_consumed_amount",
                        "level": "Notify_Gross,Notify_BalIncr,Notify_IncrEq",
                        "value": {
                            "amount": 90,
                            "units": "megabytes"
                        },
                        "valueName": "90Percent #502"
                    },
                    {
                        "counterType": "Threshold_consumed_amount",
                        "level": "Notify_Gross,Notify_BalIncr,Notify_IncrEq",
                        "value": {
                            "amount": 100,
                            "units": "megabytes"
                        },
                        "valueName": "100Percent #503"
                    },
                    {
                        "counterType": "Threshold_available_amount",
                        "level": "Notify_Gross,Notify_BalIncr,Notify_IncrEq",
                        "value": {
                            "amount": 0,
                            "units": "megabytes"
                        },
                        "valueName": "Bal_Zero"
                    }
                ]
            },
            {
                "id": "10",
                "name": "HotSpot Data - Prepaid",
                "usageType": "Data",
                "isShared": false,
                "@type": "BucketBalance",
                "characteristic": [
                    {
                        "value": "4096",
                        "name": "AvailableAmount"
                    },
                    {
                        "value": "2023-02-10T18:17:22",
                        "name": "BalanceStartTime"
                    },
                    {
                        "value": "2023-03-12T00:00:00",
                        "name": "StartTime"
                    },
                    {
                        "value": "2023-04-11T00:00:00",
                        "name": "EndTime"
                    },
                    {
                        "value": "0",
                        "name": "CreditLimit"
                    },
                    {
                        "value": "false",
                        "name": "IsBillingCyclePeriodic"
                    },
                    {
                        "value": "false",
                        "name": "IsCompositeMeter"
                    },
                    {
                        "value": "false",
                        "name": "IsCreateExternalPaymentRequest"
                    },
                    {
                        "value": "false",
                        "name": "IsOnDemand"
                    },
                    {
                        "value": "true",
                        "name": "IsPeriodic"
                    },
                    {
                        "value": "true",
                        "name": "IsPrepaid"
                    },
                    {
                        "value": "true",
                        "name": "IsPrivate"
                    },
                    {
                        "value": "true",
                        "name": "IsPurchasedItemCyclePeriodic"
                    },
                    {
                        "value": "false",
                        "name": "IsRenewable"
                    },
                    {
                        "value": "false",
                        "name": "IsVirtual"
                    },
                    {
                        "value": "0",
                        "name": "ReservedAmount"
                    },
                    {
                        "value": "4096",
                        "name": "ThresholdLimit"
                    }
                ],
                "product": [
                    {
                        "publicIdentifier": "S-1001"
                    }
                ],
                "bucketBalance": [
                    {
                        "remainingValueName": "4096 megabytes",
                        "remainingValue": {
                            "amount": 4096,
                            "units": "megabytes"
                        },
                        "validFor": {
                            "startDateTime": "2023-02-10T00:00:00",
                            "endDateTime": "2023-03-12T00:00:00"
                        },
                        "characteristic": [
                            {
                                "value": "4096",
                                "name": "ThresholdLimit"
                            },
                            {
                                "value": "0",
                                "name": "ReservedAmount"
                            },
                            {
                                "value": "false",
                                "name": "IsCurrentPeriod"
                            }
                        ]
                    },
                    {
                        "remainingValueName": "4096 megabytes",
                        "remainingValue": {
                            "amount": 4096,
                            "units": "megabytes"
                        },
                        "validFor": {
                            "startDateTime": "2023-03-12T00:00:00",
                            "endDateTime": "2023-04-11T00:00:00"
                        },
                        "characteristic": [
                            {
                                "value": "4096",
                                "name": "ThresholdLimit"
                            },
                            {
                                "value": "0",
                                "name": "ReservedAmount"
                            },
                            {
                                "value": "true",
                                "name": "IsCurrentPeriod"
                            }
                        ]
                    },
                    {
                        "remainingValueName": "0 megabytes",
                        "remainingValue": {
                            "amount": 0,
                            "units": "megabytes"
                        },
                        "validFor": {
                            "startDateTime": "2023-04-11T00:00:00",
                            "endDateTime": "2023-05-11T00:00:00"
                        },
                        "characteristic": [
                            {
                                "value": "0",
                                "name": "ThresholdLimit"
                            },
                            {
                                "value": "0",
                                "name": "ReservedAmount"
                            },
                            {
                                "value": "false",
                                "name": "IsCurrentPeriod"
                            }
                        ]
                    }
                ],
                "bucketCounter": [
                    {
                        "counterType": "Threshold_credit_limit",
                        "level": "Notify_Gross",
                        "value": {
                            "amount": 0,
                            "units": "megabytes"
                        },
                        "valueName": "bal"
                    }
                ]
            },
            {
                "id": "11",
                "name": "DataPrioritization Balance - Prepaid",
                "usageType": "Data",
                "isShared": false,
                "@type": "BucketBalance",
                "characteristic": [
                    {
                        "value": "0",
                        "name": "AvailableAmount"
                    },
                    {
                        "value": "2023-02-10T18:17:22",
                        "name": "BalanceStartTime"
                    },
                    {
                        "value": "2023-03-12T18:17:22",
                        "name": "StartTime"
                    },
                    {
                        "value": "2023-04-11T18:17:22",
                        "name": "EndTime"
                    },
                    {
                        "value": "0",
                        "name": "CreditLimit"
                    },
                    {
                        "value": "false",
                        "name": "IsBillingCyclePeriodic"
                    },
                    {
                        "value": "false",
                        "name": "IsCompositeMeter"
                    },
                    {
                        "value": "false",
                        "name": "IsCreateExternalPaymentRequest"
                    },
                    {
                        "value": "false",
                        "name": "IsOnDemand"
                    },
                    {
                        "value": "true",
                        "name": "IsPeriodic"
                    },
                    {
                        "value": "true",
                        "name": "IsPrepaid"
                    },
                    {
                        "value": "true",
                        "name": "IsPrivate"
                    },
                    {
                        "value": "false",
                        "name": "IsPurchasedItemCyclePeriodic"
                    },
                    {
                        "value": "false",
                        "name": "IsRenewable"
                    },
                    {
                        "value": "false",
                        "name": "IsVirtual"
                    },
                    {
                        "value": "0",
                        "name": "ReservedAmount"
                    },
                    {
                        "value": "0",
                        "name": "ThresholdLimit"
                    }
                ],
                "product": [
                    {
                        "publicIdentifier": "S-1001"
                    }
                ],
                "bucketBalance": [
                    {
                        "remainingValueName": "0 megabytes",
                        "remainingValue": {
                            "amount": 0,
                            "units": "megabytes"
                        },
                        "validFor": {
                            "startDateTime": "2023-02-10T18:17:22",
                            "endDateTime": "2023-03-12T18:17:22"
                        },
                        "characteristic": [
                            {
                                "value": "0",
                                "name": "ThresholdLimit"
                            },
                            {
                                "value": "0",
                                "name": "ReservedAmount"
                            },
                            {
                                "value": "false",
                                "name": "IsCurrentPeriod"
                            }
                        ]
                    },
                    {
                        "remainingValueName": "0 megabytes",
                        "remainingValue": {
                            "amount": 0,
                            "units": "megabytes"
                        },
                        "validFor": {
                            "startDateTime": "2023-03-12T18:17:22",
                            "endDateTime": "2023-04-11T18:17:22"
                        },
                        "characteristic": [
                            {
                                "value": "0",
                                "name": "ThresholdLimit"
                            },
                            {
                                "value": "0",
                                "name": "ReservedAmount"
                            },
                            {
                                "value": "true",
                                "name": "IsCurrentPeriod"
                            }
                        ]
                    },
                    {
                        "remainingValueName": "0 megabytes",
                        "remainingValue": {
                            "amount": 0,
                            "units": "megabytes"
                        },
                        "validFor": {
                            "startDateTime": "2023-04-11T18:17:22",
                            "endDateTime": "2023-05-11T18:17:22"
                        },
                        "characteristic": [
                            {
                                "value": "0",
                                "name": "ThresholdLimit"
                            },
                            {
                                "value": "0",
                                "name": "ReservedAmount"
                            },
                            {
                                "value": "false",
                                "name": "IsCurrentPeriod"
                            }
                        ]
                    }
                ],
                "bucketCounter": [
                    {
                        "counterType": "Threshold_credit_limit",
                        "level": "Notify_Gross",
                        "value": {
                            "amount": 0,
                            "units": "megabytes"
                        },
                        "valueName": "bal"
                    },
                    {
                        "counterType": "Threshold_consumed_amount",
                        "level": "Notify_Gross,Notify_BalIncr,Notify_IncrEq",
                        "value": {
                            "amount": 75,
                            "units": "megabytes"
                        },
                        "valueName": "75Percent"
                    },
                    {
                        "counterType": "Threshold_consumed_amount",
                        "level": "Notify_Gross,Notify_BalIncr,Notify_IncrEq",
                        "value": {
                            "amount": 90,
                            "units": "megabytes"
                        },
                        "valueName": "90Percent"
                    },
                    {
                        "counterType": "Threshold_consumed_amount",
                        "level": "Notify_Gross,Notify_BalIncr,Notify_IncrEq",
                        "value": {
                            "amount": 100,
                            "units": "megabytes"
                        },
                        "valueName": "100Percent"
                    }
                ]
            },
            {
                "id": "12",
                "name": "Included MMS - Prepaid",
                "usageType": "Picture",
                "isShared": false,
                "@type": "BucketBalance",
                "characteristic": [
                    {
                        "value": "999999",
                        "name": "AvailableAmount"
                    },
                    {
                        "value": "2023-02-10T18:17:22",
                        "name": "BalanceStartTime"
                    },
                    {
                        "value": "2023-03-12T00:00:00",
                        "name": "StartTime"
                    },
                    {
                        "value": "2023-04-11T00:00:00",
                        "name": "EndTime"
                    },
                    {
                        "value": "0",
                        "name": "CreditLimit"
                    },
                    {
                        "value": "false",
                        "name": "IsBillingCyclePeriodic"
                    },
                    {
                        "value": "false",
                        "name": "IsCompositeMeter"
                    },
                    {
                        "value": "false",
                        "name": "IsCreateExternalPaymentRequest"
                    },
                    {
                        "value": "false",
                        "name": "IsOnDemand"
                    },
                    {
                        "value": "true",
                        "name": "IsPeriodic"
                    },
                    {
                        "value": "true",
                        "name": "IsPrepaid"
                    },
                    {
                        "value": "false",
                        "name": "IsPrivate"
                    },
                    {
                        "value": "true",
                        "name": "IsPurchasedItemCyclePeriodic"
                    },
                    {
                        "value": "false",
                        "name": "IsRenewable"
                    },
                    {
                        "value": "false",
                        "name": "IsVirtual"
                    },
                    {
                        "value": "0",
                        "name": "ReservedAmount"
                    },
                    {
                        "value": "999999",
                        "name": "ThresholdLimit"
                    }
                ],
                "product": [
                    {
                        "publicIdentifier": "S-1001"
                    }
                ],
                "bucketBalance": [
                    {
                        "remainingValueName": "999999",
                        "remainingValue": {
                            "amount": 999999
                        },
                        "validFor": {
                            "startDateTime": "2023-02-10T00:00:00",
                            "endDateTime": "2023-03-12T00:00:00"
                        },
                        "characteristic": [
                            {
                                "value": "999999",
                                "name": "ThresholdLimit"
                            },
                            {
                                "value": "0",
                                "name": "ReservedAmount"
                            },
                            {
                                "value": "false",
                                "name": "IsCurrentPeriod"
                            }
                        ]
                    },
                    {
                        "remainingValueName": "999999",
                        "remainingValue": {
                            "amount": 999999
                        },
                        "validFor": {
                            "startDateTime": "2023-03-12T00:00:00",
                            "endDateTime": "2023-04-11T00:00:00"
                        },
                        "characteristic": [
                            {
                                "value": "999999",
                                "name": "ThresholdLimit"
                            },
                            {
                                "value": "0",
                                "name": "ReservedAmount"
                            },
                            {
                                "value": "true",
                                "name": "IsCurrentPeriod"
                            }
                        ]
                    },
                    {
                        "remainingValueName": "0",
                        "remainingValue": {
                            "amount": 0
                        },
                        "validFor": {
                            "startDateTime": "2023-04-11T00:00:00",
                            "endDateTime": "2023-05-11T00:00:00"
                        },
                        "characteristic": [
                            {
                                "value": "0",
                                "name": "ThresholdLimit"
                            },
                            {
                                "value": "0",
                                "name": "ReservedAmount"
                            },
                            {
                                "value": "false",
                                "name": "IsCurrentPeriod"
                            }
                        ]
                    }
                ],
                "bucketCounter": [
                    {
                        "counterType": "Threshold_credit_limit",
                        "level": "Notify_Gross",
                        "value": {
                            "amount": 0,
                            "units": "none"
                        },
                        "valueName": "Bal"
                    }
                ]
            }
        ]
    }
]
[ 200 ] POSTPAID

Note: Below response is for both Retrieve Usage & Get remaining balance for the account.

OK - list request processed successfully, response body contains an entity corresponding to the requested resource.

[
    {
        "description": "Usage Consumption Report for MSISDN 8201",
        "effectiveDate": "2022-11-08T11:52:48",
        "@type": "UsageConsumptionReport",
        "characteristic": [
            {
                "value": "Monthly",
                "name": "BillingCycleId"
            },
            {
                "value": "1",
                "name": "BillingIntervalId"
            },
            {
                "value": "30",
                "name": "BillingCycleDuration"
            },
            {
                "value": "7",
                "name": "BillingCycleOffset"
            },
            {
                "value": "2022-11-01T00:00:00",
                "name": "BillingCycleStartTime"
            },
            {
                "value": "2022-12-01T00:00:00",
                "name": "BillingCycleEndTime"
            }
        ],
        "bucket": [
            {
                "id": "1",
                "name": "Postpaid Balance",
                "usageType": "United States dollar",
                "isShared": false,
                "@type": "BucketBalance",
                "characteristic": [
                    {
                        "value": "infinity",
                        "name": "AvailableAmount"
                    },
                    {
                        "value": "infinity",
                        "name": "CreditLimit"
                    },
                    {
                        "value": "false",
                        "name": "IsCreateExternalPaymentRequest"
                    },
                    {
                        "value": "false",
                        "name": "IsPeriodic"
                    },
                    {
                        "value": "false",
                        "name": "IsPrepaid"
                    },
                    {
                        "value": "false",
                        "name": "IsPrivate"
                    },
                    {
                        "value": "false",
                        "name": "IsVirtual"
                    },
                    {
                        "value": "0",
                        "name": "ReservedAmount"
                    },
                    {
                        "value": "infinity",
                        "name": "ThresholdLimit"
                    }
                ],
                "product": [
                    {
                        "publicIdentifier": "8201"
                    }
                ],
                "bucketCounter": [
                    {
                        "counterType": "Threshold_credit_limit",
                        "level": "Notify_Gross,Notify_IncrEq,Notify_DecrEq",
                        "value": {
                            "amount": "infinity",
                            "units": "none"
                        },
                        "valueName": "Limit"
                    }
                ]
            }
        ]
    }
]
Definitions

Each of the request parameters is detailed.

descriptionstringFree short text describing the usage consumption report content.Concatenate “Usage Consumption Report for” + “MSISDN/SubscriptionId” +
For eg\: "Usage Consumption Report for subscriptionId 1142318979871"
N
effectiveDateDatetimeDate and time when the usage consumption report was calculated and generated.N
@typestringHard coded value "UsageConsumptionReport".N
characteristicarrayDescribes a given characteristic of an object or entity through a name/value pairN
characteristic.namearrayName of the characteristicN
characteristic.valuearrayThe value of characteristicN
bucketarrayA list of usage volume products (UsageVolumeProduct [*]). Bucket(s) included in the offer or option subscribedN
bucket.idstringResource Id of the bucket.N
bucket.namestringName of balance as defined in My MATRIXX. eg: Hotspot usage, Internet usage,Prepaid BalanceN
bucket.usageTypestringClass name of balance as defined in My MATRIXX. such as voice, sms, dataN
bucket.isSharedbooleanTrue if the balance is an aggregate balance. False otherwise.N
bucket.@typestringhardcoded to "BucketBalance"N
bucket.characteristicarrayDescribes a given bucket characteristic of an objectN
bucket.characteristic.valuestringThe value of characteristicN
bucket.characteristic.namestringName of the characteristicN
bucket.productarrayA network product reference (NetworkProductRef). Public identifier associated to the product for which the consumption counter is detailed.N
bucket.product.publicIdentifierstringPublic number associated to the network product(msisdn number for mobile line for example).N
bucket.bucketCounterstringThe consumption counters (called ConsumptionSummary in the SID model) detail for example the different kind of consumption done on the bucketN
bucket.bucketCounter.counterTypestringType of the consumption counter. We can give for example a counter of the used value for a bucket (counterType=used for example) or the value of the consumption done out of the bucket(s) (counterType=outOfBucket for example).N
bucket.bucketCounter.levelstringCounter level. The counter can be given globally for the bucket or detailed by user or by network product for example in case of shared bucket.N
bucket.bucketCounter.valueobjectNumeric value of the bucket counter in a given unitN
bucket.bucketCounter.value.amountintegervalue of the bucketN
bucket.bucketCounter.value.unitsstringunit of the valueN
bucket.bucketCounter.valueNamestringValue of the counter in a formatted string used for display needs for example.N
bucket.bucketBalancearrayList of bucket balanceN
bucket.bucketBalance.remainingValueNamestringRemaining amount in a formatted string for the bucket given in the balance unit (for example 1.9 Gb)N
bucket.bucketBalance.remainingValueobjectIndicate the amount on the bucketN
bucket.bucketBalance.remainingValue.amountfloatBalance amount for this intervalN
bucket.bucketBalance.remainingValue.unitfloatQuantity unit of the balance.N
bucket.bucketBalance.validForobjectperiod for which the balacne in the bucket is validN
bucket.bucketBalance.validFor.startDateTimestringThe start time of this balance intervalN
bucket.bucketBalance.validFor.endDateTimestringThe end time of this balance intervalN
bucket.bucketBalance.characteristicarrayDescribes a given bucketBalance characteristic of an objectN
bucket.bucketBalance.characteristic.namestringName of the characteristicN
bucket.bucketBalance.characteristic.valuestringValue of the characteristicN

characteristic data model:

nametypedescriptionrequired
characteristic.nameStringBillingCycleId(The ID of the billing cycle template.)N
characteristic.valuestringMonthlyN
characteristic.namestringBillingIntervalId(Interval Id for billing cycle period.)N
characteristic.valueString1N
characteristic.nameStringBillingCycleDuration (Duration of current period in days.)N
characteristic.valueString30N
characteristic.nameStringBillingCycleOffset (Count of number of complete days into current period.)N
characteristic.valuestring7N
characteristic.nameStringBillingCycleStartTime(Start date of the current billing period.)N
characteristic.valuestring2022-11-01T00:00:00N
characteristic.nameStringBillingCycleEndTime(End date of the current billing period.)N
characteristic.valuestring2022-12-01T00:00:00N

bucket.characteristics data model:

nametypedescriptionrequired
characteristic.nameStringAvailableAmount (The amount available to use based on the current active balance value, the balance credit limit and, for aggregated balances, the credit limit of any parents. If rollover is allowed for this balance, the sum of all the valid rollover balances from prior periods is included in this field.)N
characteristic.valuestring208811.96N
characteristic.namestringStartTime (When the balance amount becomes valid. If not present, balance is valid from start of time. For periodic balances, this is the the start validity of the period slot selected based on the time of the request.)N
characteristic.valueString2022-08-30T05:07:14N
characteristic.nameStringCreditLimit(The current credit limit value on the balance.)N
characteristic.valueString0N
characteristic.nameStringIsCreateExternalPaymentRequest(True - indicates balance is associated with an external payment method, so an External Payment Request will be created to request for the payment. Otherwise it is not associated with an external payment method.)N
characteristic.valuebooleanfalseN
characteristic.nameStringIsPeriodic(True if the balance is a periodic balance. False otherwise.)N
characteristic.valuebooleanfalseN
characteristic.nameStringIsPrepaid(True if the balance is a pre-paid amount. False otherwise.)N
characteristic.valuebooleantrueN
characteristic.nameStringIsPrivate(True - indicates a private balance otherwise it is not private balance)N
characteristic.valuebooleanfalseN
characteristic.nameStringIsVirtual( True if the balance is a virtual balance. False otherwise.)N
characteristic.valuebooleanfalseN
characteristic.nameStringReservedAmount(The additional quantity reserved by current activity. For periodic balances, this is the reserved value in the period slot at the time of the request.)N
characteristic.valueString0N
characteristic.nameStringThresholdLimit(The current threshold limit value on the balance.)N
characteristic.valueString208768.97N
characteristic.nameStringRolloverInitAmountTotal: Sum of the rollover balances at the start of the current interval.N
characteristic.valueString4096N

bucketBalance.characteristic data model:

nametypedescriptionrequired
characteristic.nameStringThresholdLimit: The current threshold limit value of this balance interval, 99999 indicates UnlimitedN
characteristic.valueString99999N
characteristic.nameStringReservedAmount: The additional quantity reserved by current activity for this balance interval.N
characteristic.valueString0N
characteristic.nameStringIsCurrentPeriod: True for current period, false for other periods. Not set for on-demand balance periods.N
characteristic.valueStringPossible values are: true, falseN

Possible Error Scenarios:

Bad Request [400]
{
    "errors": [
        {
            "code": 400,
            "message": "The request is invalid or not properly formed.",
            "description": "The client sent too many requests and server is not able to serve them all at the moment"
        }
    ]
}

#### Unauthorized [401]

{
    "errors": [
        {
            "code": 404,
            "message": "The user could not be authenticated for this request.",
            "description": "The request has not been applied because it lacks valid authentication credentials for the target resource"
        }
    ]
}

#### Not Found [404]

{
    "errors": [
        {
            "code": 404,
            "message": "MATRIXX:QUERY_USAGE_ERROR",
            "description": "Subscriber not found (ExternalId=xxxx)"
        }
    ]
}

#### Not Found [404]

{
    "errors": [
        {
            "code": 404,
            "message": "APIKIT:METHOD_NOT_ALLOWED",
            "description": "HTTP Method xxx not allowed for : /{businessId}/queryUsageConsumption"
        }
    ]
}

Reviews